.class public Lcom/htc/android/footprints/activity/SearchActivity;
.super Landroid/app/Activity;
.source "SearchActivity.java"

# interfaces
.implements Lcom/htc/widget/HtcAdapterView$OnItemClickListener;
.implements Lcom/htc/widget/HtcAdapterView$OnItemLongClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;,
        Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;
    }
.end annotation


# static fields
.field private static final CONTEXT_MENU:I = 0x3

.field private static final DELETE_FOOTPRINT_DIALOG:I = 0x2

.field private static final MENU_SORT:I = 0x1

.field private static final MENU_VIEW:I = 0x0

.field private static final SORT_DIALOG:I = 0x1

.field private static final SORT_MODE_BY_DATE:I = 0x1

.field private static final SORT_MODE_BY_NAME:I = 0x0

.field private static final SORT_STRING_BY_DATE:Ljava/lang/String; = "create_time desc"

.field private static final SORT_STRING_BY_NAME:Ljava/lang/String; = "name asc"

.field private static final TAG:Ljava/lang/String; = "SearchActivity"

.field private static final VIEW_DIALOG:I


# instance fields
.field protected mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

.field private mCacheTag:Ljava/lang/String;

.field private mCategoryIndex:I

.field private mCategoryKeyword:Ljava/lang/String;

.field private mCategoryList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Category;",
            ">;"
        }
    .end annotation
.end field

.field private mCategoryNames:[Ljava/lang/String;

.field protected mCursor:Landroid/database/Cursor;

.field protected mEmptyText:Landroid/widget/TextView;

.field protected mEmptyView:Landroid/view/View;

.field protected mFilter:Landroid/widget/Filter;

.field protected mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

.field protected mListView:Lcom/htc/widget/HtcListView;

.field protected mSearchBox:Lcom/htc/widget/SearchBoxView;

.field protected mSearchEdit:Landroid/widget/EditText;

.field private mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mSortMode:I

.field private mSortString:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 57
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 426
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/SearchActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    return v0
.end method

.method static synthetic access$002(Lcom/htc/android/footprints/activity/SearchActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    iput p1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    return p1
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/SearchActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->updateSortString()V

    return-void
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/SearchActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I

    return v0
.end method

.method static synthetic access$202(Lcom/htc/android/footprints/activity/SearchActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    iput p1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I

    return p1
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$302(Lcom/htc/android/footprints/activity/SearchActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    iput-object p1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryList:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/activity/SearchActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->updateEmptyText()V

    return-void
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/SearchActivity;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/SearchActivity;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/SearchActivity;->switchView(I)V

    return-void
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;

    return-object v0
.end method

.method private init()V
    .locals 12

    .prologue
    const/4 v11, 0x0

    const/4 v10, 0x1

    .line 303
    const v6, 0x102000a

    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/htc/widget/HtcListView;

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    .line 304
    const v6, 0x1020004

    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyView:Landroid/view/View;

    .line 305
    const v6, 0x7f0c001e

    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyText:Landroid/widget/TextView;

    .line 306
    const v6, 0x7f0c001d

    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/SearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/htc/widget/SearchBoxView;

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    .line 307
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    invoke-virtual {v6}, Lcom/htc/widget/SearchBoxView;->getTextField()Landroid/widget/EditText;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    .line 308
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    const v7, 0x7f0a0056

    invoke-virtual {p0, v7}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 309
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    const/16 v7, 0x70

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->setInputType(I)V

    .line 310
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    new-array v7, v10, [Landroid/text/InputFilter;

    new-instance v8, Landroid/text/InputFilter$LengthFilter;

    const/16 v9, 0x14

    invoke-direct {v8, v9}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    aput-object v8, v7, v11

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->setFilters([Landroid/text/InputFilter;)V

    .line 311
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v6}, Landroid/widget/EditText;->requestFocus()Z

    .line 312
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    new-instance v7, Lcom/htc/android/footprints/activity/SearchActivity$5;

    invoke-direct {v7, p0}, Lcom/htc/android/footprints/activity/SearchActivity$5;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 322
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 323
    .local v2, intent:Landroid/content/Intent;
    const-string v6, "EXTRA_SORT_BY"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    .line 324
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    if-eqz v6, :cond_4

    .line 325
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    const-string v7, "create_time desc"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 326
    iput v10, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    .line 334
    :goto_0
    const-string v6, "EXTRA_CATEGORY"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    .line 335
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    if-nez v6, :cond_0

    .line 336
    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v6

    iget-object v6, v6, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    .line 338
    :cond_0
    const-string v6, "EXTRA_CACHE_TAG"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;

    .line 339
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;

    if-nez v6, :cond_1

    .line 340
    const-string v6, "ListModeActivity"

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;

    .line 342
    :cond_1
    const-string v6, "EXTRA_SEARCH_INPUT"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 344
    .local v4, searchInput:Ljava/lang/String;
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 345
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    iget-object v8, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    invoke-virtual {v6, v7, v8}, Lcom/htc/android/footprints/provider/FootprintManager;->findFootprintCursorByCategory(Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCursor:Landroid/database/Cursor;

    .line 346
    new-instance v6, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    const v7, 0x7f030016

    iget-object v8, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCursor:Landroid/database/Cursor;

    invoke-direct {v6, p0, p0, v7, v8}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;Landroid/content/Context;ILandroid/database/Cursor;)V

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    .line 347
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    invoke-virtual {v6}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->updateSections()V

    .line 348
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    invoke-virtual {v6}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getFilter()Landroid/widget/Filter;

    move-result-object v6

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mFilter:Landroid/widget/Filter;

    .line 349
    new-instance v6, Landroid/os/Handler;

    invoke-direct {v6}, Landroid/os/Handler;-><init>()V

    new-instance v7, Lcom/htc/android/footprints/activity/SearchActivity$6;

    invoke-direct {v7, p0}, Lcom/htc/android/footprints/activity/SearchActivity$6;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    const-wide/16 v8, 0x50

    invoke-virtual {v6, v7, v8, v9}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 356
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v6, v10}, Lcom/htc/widget/HtcListView;->setFastScrollEnabled(Z)V

    .line 357
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v6, p0}, Lcom/htc/widget/HtcListView;->setOnItemClickListener(Lcom/htc/widget/HtcAdapterView$OnItemClickListener;)V

    .line 358
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v6, p0}, Lcom/htc/widget/HtcListView;->setOnItemLongClickListener(Lcom/htc/widget/HtcAdapterView$OnItemLongClickListener;)V

    .line 359
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    invoke-virtual {v6, v7}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 361
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v6

    invoke-virtual {v6}, Lcom/htc/android/footprints/provider/FootprintManager;->getAllCategory()Ljava/util/ArrayList;

    move-result-object v3

    .line 362
    .local v3, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v6

    invoke-virtual {v3, v11, v6}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 363
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 364
    .local v5, size:I
    new-array v6, v5, [Ljava/lang/String;

    iput-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryNames:[Ljava/lang/String;

    .line 366
    const/4 v1, 0x0

    .local v1, i:I
    :goto_1
    if-ge v1, v5, :cond_5

    .line 367
    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Category;

    .line 368
    .local v0, c:Lcom/htc/android/footprints/vo/Category;
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryNames:[Ljava/lang/String;

    iget-object v7, v0, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    aput-object v7, v6, v1

    .line 369
    iget-object v6, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 370
    iput v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I

    .line 366
    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 328
    .end local v0           #c:Lcom/htc/android/footprints/vo/Category;
    .end local v1           #i:I
    .end local v3           #list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    .end local v4           #searchInput:Ljava/lang/String;
    .end local v5           #size:I
    :cond_3
    iput v11, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    goto/16 :goto_0

    .line 331
    :cond_4
    const-string v6, "EXTRA_SORT_MODE"

    invoke-virtual {v2, v6, v10}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v6

    iput v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    .line 332
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->updateSortString()V

    goto/16 :goto_0

    .line 373
    .restart local v1       #i:I
    .restart local v3       #list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    .restart local v4       #searchInput:Ljava/lang/String;
    .restart local v5       #size:I
    :cond_5
    iput-object v3, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryList:Ljava/util/ArrayList;

    .line 375
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-nez v6, :cond_6

    .line 376
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v6, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 377
    iget-object v6, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v7

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->setSelection(I)V

    .line 379
    :cond_6
    return-void
.end method

.method private switchView(I)V
    .locals 3
    .parameter "count"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 402
    if-eqz p1, :cond_0

    .line 403
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setVisibility(I)V

    .line 404
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyView:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 409
    :goto_0
    return-void

    .line 406
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setVisibility(I)V

    .line 407
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method private updateEmptyText()V
    .locals 2

    .prologue
    .line 390
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 391
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a2

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 399
    :goto_0
    return-void

    .line 393
    :cond_0
    iget v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I

    if-eqz v0, :cond_1

    .line 394
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 396
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0
.end method

.method private updateSortString()V
    .locals 2

    .prologue
    .line 382
    iget v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 383
    const-string v0, "create_time desc"

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    .line 387
    :goto_0
    return-void

    .line 385
    :cond_0
    const-string v0, "name asc"

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    goto :goto_0
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter "icicle"

    .prologue
    .line 90
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 91
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->requestWindowFeature(I)Z

    .line 92
    const v0, 0x7f030021

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->setContentView(I)V

    .line 93
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->init()V

    .line 94
    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 9
    .parameter "id"

    .prologue
    const/4 v5, 0x1

    const/4 v8, 0x0

    const/4 v7, 0x0

    const v6, 0x7f0a0004

    const v4, 0x7f0200ad

    .line 155
    const/4 v1, 0x0

    .line 156
    .local v1, result:Landroid/app/Dialog;
    packed-switch p1, :pswitch_data_0

    .line 265
    :cond_0
    :goto_0
    if-nez v1, :cond_1

    .line 266
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v1

    .line 268
    :cond_1
    return-object v1

    .line 158
    :pswitch_0
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a0062

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v6, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f070001

    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I

    new-instance v5, Lcom/htc/android/footprints/activity/SearchActivity$1;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/SearchActivity$1;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    invoke-virtual {v2, v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems(IILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    .line 180
    goto :goto_0

    .line 182
    :pswitch_1
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a0026

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v6, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryNames:[Ljava/lang/String;

    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I

    new-instance v5, Lcom/htc/android/footprints/activity/SearchActivity$2;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/SearchActivity$2;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    invoke-virtual {v2, v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    .line 198
    goto :goto_0

    .line 201
    :pswitch_2
    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v2, :cond_0

    .line 202
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a00a5

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x1080027

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f0a0018

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-array v4, v5, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v5, v5, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    aput-object v5, v4, v8

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f0a0065

    new-instance v4, Lcom/htc/android/footprints/activity/SearchActivity$3;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/activity/SearchActivity$3;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    invoke-virtual {v2, v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v6, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 220
    :pswitch_3
    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v2, :cond_0

    .line 221
    const/4 v2, 0x4

    new-array v0, v2, [Ljava/lang/CharSequence;

    const v2, 0x7f0a000f

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v0, v8

    const v2, 0x7f0a0010

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v0, v5

    const/4 v2, 0x2

    const v3, 0x7f0a0021

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    const/4 v2, 0x3

    const v3, 0x7f0a00b4

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 227
    .local v0, items:[Ljava/lang/CharSequence;
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    iget-object v3, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/SearchActivity$4;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/SearchActivity$4;-><init>(Lcom/htc/android/footprints/activity/SearchActivity;)V

    invoke-virtual {v2, v0, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 156
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 4
    .parameter "menu"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 128
    const v0, 0x7f0a0025

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e4

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 131
    const v0, 0x7f0a0026

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e5

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 134
    return v3
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 106
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 109
    iput-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 111
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCursor:Landroid/database/Cursor;

    if-eqz v0, :cond_0

    .line 112
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 114
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 115
    iput-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryList:Ljava/util/ArrayList;

    .line 116
    iput-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryNames:[Ljava/lang/String;

    .line 117
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 118
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 119
    iput-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 120
    return-void
.end method

.method public onItemClick(Lcom/htc/widget/HtcAdapterView;Landroid/view/View;IJ)V
    .locals 3
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/htc/widget/HtcAdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 273
    .local p1, arg0:Lcom/htc/widget/HtcAdapterView;,"Lcom/htc/widget/HtcAdapterView<*>;"
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.htc.android.footprints.activity.DetailViewActivity"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 275
    .local v0, intent:Landroid/content/Intent;
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 276
    const-string v1, "DATA"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    invoke-virtual {v2, p3}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 277
    const-string v1, "EXTRA_CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 278
    const-string v1, "EXTRA_SEARCH_INPUT"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 279
    const-string v1, "EXTRA_SORT_BY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 280
    const-string v1, "EXTRA_ITEM_IDX"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 281
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->startActivity(Landroid/content/Intent;)V

    .line 282
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->finish()V

    .line 283
    return-void
.end method

.method public onItemLongClick(Lcom/htc/widget/HtcAdapterView;Landroid/view/View;IJ)Z
    .locals 1
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/htc/widget/HtcAdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)Z"
        }
    .end annotation

    .prologue
    .line 287
    .local p1, arg0:Lcom/htc/widget/HtcAdapterView;,"Lcom/htc/widget/HtcAdapterView<*>;"
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mAdapter:Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;

    invoke-virtual {v0, p3}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSelectedFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 288
    const/4 v0, 0x3

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->showDialog(I)V

    .line 289
    const/4 v0, 0x1

    return v0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 294
    const/16 v0, 0x54

    if-ne p1, v0, :cond_0

    .line 295
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/SearchActivity;->finish()V

    .line 296
    const/4 v0, 0x1

    .line 298
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter "item"

    .prologue
    const/4 v2, 0x1

    .line 139
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    .line 140
    .local v0, id:I
    if-ne v0, v2, :cond_1

    .line 141
    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/SearchActivity;->showDialog(I)V

    .line 145
    :cond_0
    :goto_0
    return v2

    .line 142
    :cond_1
    if-nez v0, :cond_0

    .line 143
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/SearchActivity;->showDialog(I)V

    goto :goto_0
.end method

.method public onResume()V
    .locals 2

    .prologue
    .line 98
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 99
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->hasFocus()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 100
    invoke-static {p0}, Lcom/htc/android/footprints/utils/ImeLauncher;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/ImeLauncher;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/ImeLauncher;->show(Landroid/widget/EditText;)V

    .line 102
    :cond_0
    return-void
.end method
